#ifndef __HK_SESSION_H__
#define __HK_SESSION_H__
#include "common.h"
#include "mxml.h"

typedef struct _HKSession_T
{
	int    sessionID;
	int	   logined;
	int	   cliType;//0:NVR 1:VMS
	unsigned long  dwUserID;
}HKSession_T;

int  HKSessionInit();
HKSession_T HKCreatSession();
HKSession_T HKGetSessionInfo(int sessionID);
int HKDelSession(int sessionID);
int HKSetSessionInfo(HKSession_T info);
void 	AddXMLNodeText(mxml_node_t *node,mxml_node_t *subnode,const char* name,const char* vaule);
//void 	SetXMLNodeAttr(mxml_node_t *node,mxml_node_t *subnode,const char* name,const char* key1,const char* vaule1,const char* key2,const char* vaule2);
void SetXMLNodeAttr(mxml_node_t *node,mxml_node_t *subnode,const char* name,const char* key1,const char* vaule1,const char* key2,const char* vaule2);
void SetXMLNodeAttrExt(mxml_node_t *node,mxml_node_t *subnode,const char* name,const char* key1,const char* vaule1,const char* key2,const char* vaule2,const char* key3,const char* vaule3);


#endif
